<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>背景复合属性</title>
    <style>

        div{
            width: 1200px;
            height: 800px;
            /* background-color: yellow;
            background-image: url('img/1.png');
            background-repeat: no-repeat;
            background-position: center;
            background-attachment: fixed; */
            /* 如果某个属性没设置 那么会把之前设置的属性设置成空 */
            background: yellow url('img/1.png') no-repeat center fixed;
            /* 该属性不能写入到复合属性 */
            background-size: 200px 200px;
        }
    </style>
</head>
<body>
    <div></div>
</body>
</html>